<?php

namespace app\validate;

use think\Validate;

/**
 * 客户管理-人才管理
 */
class CustomerPersonList extends Validate
{
    protected $rule = [
        'aliasId|别名' => 'require',
        'page|页码' => 'require|number',
        'pageNum|每页条数' => 'require|number',
        'person_name|人才姓名' => 'requireWith:person_name',
        'person_id_card|身份证号' => 'requireWith:person_id_card',
        'mobile|联系电话' => 'requireWith:mobile',
        'certificate_leibie|证书类别' => 'requireWith:certificate_leibie',
        'certificate_leixing|证书类型' => 'requireWith:certificate_leixing',
        'certificate_dengji|证书等级' => 'requireWith:certificate_dengji',
        'certificate_zhuanye|证书专业' => 'requireWith:certificate_zhuanye',
        'certificate_period_of_validity_start|证书有效期开始' => 'requireWith:certificate_period_of_validity_start',
        'certificate_period_of_validity_end|证书有效期结束' => 'requireWith:certificate_period_of_validity_end',
        'certificate_b|b证' => 'requireWith:certificate_b',
        'certificate_b_period_of_validity_start|b证有效期开始' => 'requireWith:certificate_b_period_of_validity_start',
        'certificate_b_period_of_validity_end|b证有效期结束' => 'requireWith:certificate_b_period_of_validity_end',
        'social_security|社保' => 'requireWith:social_security',
        'other_certificate|其它证书' => 'requireWith:other_certificate',
    ];

}